home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-1.iso / Files / Util / M / MacDOS 3.0.sit / MacDOS 3.0 ƒ / executables / MacDOS 3.0.rsrc / TEXT_138_DECR.txt < prev    next >
Encoding:
Text File  |  1995-04-09  |  761 b   |  17 lines

  1. Decrements or shortens values of variables.
  2.  
  3. DECR [+ | -]var [BY {number | string}]
  4.  
  5.   [+|-]var  is the name of a variable possibly preceded by a plus
  6.             or minus sign. DECR uses the sign to decide whether to
  7.             operate at the end or at the beginning of the string
  8.             contained in var.
  9.   number    is a signed integral number which DECR subtracts from
  10.             var when var is numeric. When var is not numeric and the
  11.             number is positive, DECR removes characters from var
  12.             (when the number is negative, DECR adds spaces instead).
  13.   string    is a non-numeric string. DECR removes it from var
  14.             regardless of whether var is numeric or not.
  15.  
  16. Defaults: "DECR¬†var" is equivalent to "DECR¬†+var¬†BY¬†1"
  17.